package com.glx.test.dao;

import com.glx.test.pojo.User;
import com.glx.test.pojo.UserInfos;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserMapper {
    int registerUser(User user);
    int RegisterUserInfo(UserInfos userInfos);
    User getUserByUserAccount(@Param("user_account") String user_account);

    UserInfos getUserInfos(@Param("user_id") Long userId);
    int updateUserInfos(UserInfos userInfos);
    int updateUser_headpicture_url(@Param("user_id") Long userId,
                                   @Param("user_headpicture_url") String user_headpicture_url);
    int updateUser_password(@Param("user_id") Long userId,
                            @Param("user_password") String user_password);
}
